package com.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatisplus.dao.PatentMapper;
import com.mybatisplus.pojo.Patent;
//import com.mybatisplus.service.PatentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatentServiceImpl extends ServiceImpl<PatentMapper, Patent> implements PatentService {
    @Autowired
    private PatentMapper patentMapper;

    @Override
    public List<Patent> getPatentList(Patent patent) {
        return patentMapper.getPatentList(patent);
    }

    @Override
    public void addPatent(Patent patent) {
        patentMapper.addPatent(patent);
    }

    @Override
    public void updatePatent(Patent patent) {
        patentMapper.updatePatent(patent);
    }

    @Override
    public void deletePatent(Integer id) {
        patentMapper.deletePatent(id);
    }

}

